package com.ftg.learn.chapter12.impl;

/**
 * @author kangjx
 * @createTime 2022/8/3
 */
public class Play {

    public static void main(String[] args) {
        GoodStudent g = new GoodStudent();
        g.goodStudy();
        g.singASong();

        BadStudentImpl b = new BadStudentImpl();
        b.goodStudy();

        IStudy i1 = new GoodStudent();

        IStudy i2 = new BadStudentImpl();

        i1.goodStudy();
        i2.goodStudy();

        IStudy is = new IStudy(){

            @Override
            public void goodStudy() {

            }
        };

        IStudy.test1();

    }

}
